﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

public partial class ucTinTuc : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        XmlDocument doc = new XmlDocument();
        try
        {
            doc.Load("http://vnexpress.net/rss/gl/oto-xe-may.rss");
        }
        catch
        {
            doc.Load(Server.MapPath("~/App_Data/RssFeed.xml"));
        }
        Xml1.Document = doc;
        Xml1.TransformSource = "~/App_Data/LoadTinTuc.xslt";
    }
}